#include "page1.h"
#include "ui_page1.h"

#include<QPainter>
Page1::Page1(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Page1)
{
    ui->setupUi(this);
}

Page1::~Page1()
{
    delete ui;
}

void Page1::on_pushButton_clicked()
{
    emit Page1Clicked();
}

void Page1::paintEvent(QPaintEvent *event)
{
    QPainter p(this);
    QPixmap pixmap(":/new/prefix1/img/YY.jpg");
    p.drawPixmap(QRect(0,0,1080,1080),pixmap);
}
